﻿// Copyright (c) Omar AL Zabir. All rights reserved.
// For continued development and updates, visit http://msmvps.com/omar

using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

using Dropthings.Business.Workflows.EntryPointWorkflows;
using Dropthings.Business.Workflows;
using Dropthings.Business.Activities;
using Dropthings.Business.Workflows.UserAccountWorkflow;
using System.Configuration;

namespace Dropthings.Business.Workflows.EntryPointWorkflows
{
    public sealed partial class FirstVisitWorkflow : SequentialWorkflowActivity, IFirstVisitWorkflow
    {
        public FirstVisitWorkflow()
        {
            InitializeComponent();
        }

        public IUserVisitWorkflowRequest Request
        {
            get { return (IUserVisitWorkflowRequest)GetValue(RequestProperty); }
            set { SetValue(RequestProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Request.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty RequestProperty =
            DependencyProperty.Register("Request", typeof(IUserVisitWorkflowRequest), typeof(FirstVisitWorkflow));


        public IUserVisitWorkflowResponse Response
        {
            get { return (IUserVisitWorkflowResponse)GetValue(ResponseProperty); }
            set { SetValue(ResponseProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Response.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ResponseProperty =
            DependencyProperty.Register("Response", typeof(IUserVisitWorkflowResponse), typeof(FirstVisitWorkflow));


        private void SetException_ExecuteCode(object sender, EventArgs e)
        {
            throw new ApplicationException("First page creation failed");
        }

       
    }
}
